package network.themis.rms.console.repo.biz;

import network.themis.rms.console.entity.biz.BannerTip;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author ccl
 * @time 2018-07-20 13:29
 * @name BannerTipRepo
 * @desc:
 */
public interface BannerTipRepo extends CrudRepository<BannerTip,Long> {
    BannerTip findBannerTipById(Long id);
    Page<BannerTip> findAll(Pageable pageable);

    List<BannerTip> findByEnabled(Integer enabled);
}
